export const baseInformationMixin = {
  data() {
    return {
      // 变更执行地
      fieldArr1: [
        { prop: 'approvalNumber', label: '编号' },
        { prop: 'createName', label: '申请人' },
        { prop: 'identityCard', label: '身份证号' },
        { prop: 'sjskPersonName', label: '社戒社康人员姓名' },
        { prop: 'birthday', label: '出生日期' },
        { prop: 'sex_txt', label: '性别' },
        { prop: 'phone', label: '手机号' },
        { prop: 'originalExecutionAddress', label: '户籍地详址' },
        { prop: 'originalExecutionArea', label: '现社区戒毒/康复执行地' },
        { prop: 'nowExecutionArea', label: '申请变更社区戒毒/康复执行地' },
        { prop: 'sjskExecutionDate', label: '社区戒毒/康复执行日期' },
        { prop: 'nowExecutionAddress', label: '变更社区戒毒/康复执行地后居住地详址' },
        { prop: 'changeReason', label: '变更原因', span: 2 },
        { prop: 'file', label: '证明材料', span: 2 },
        { prop: 'contactsList', label: '变更社区戒毒/社区康复执行地关系人情况', span: 2 },
        // { prop: 'screenshotTime', label: '生成模板文件', span: 2,color: 'blue'},
      ],
      // 2省内异地管控、5省外异地管控-转出省外
      fieldArr2: [
        { prop: 'approvalNumber', label: '编号' },
        { prop: 'createName', label: '申请人' },
        { prop: 'realName', label: '吸毒人员姓名' },
        { prop: 'nickName', label: '别名/绰号' },
        { prop: 'country', label: '籍贯' },
        { prop: 'nation_txt', label: '民族' },
        { prop: 'birthday', label: '出生日期' },
        { prop: 'sex_txt', label: '性别' },
        { prop: 'identityCard', label: '身份证号' },
        { prop: 'phone', label: '手机号码' },
        { prop: 'householdAddress', label: '户籍地详址' },
        { prop: 'householdPoliceStation', label: '户籍地派出所' },
        { prop: 'currentAddress', label: '居住地详址' },
        { prop: 'currentTown', label: '居住地执行社区' },
        { prop: 'currentPoliceStation', label: '居住地派出所' },
        { prop: 'riskLevel_txt', label: '风险类别' },
        { prop: 'applyControlDate_time', label: '申请异地管控时间' },
        { prop: 'managerName', label: '当前管控责任人' },
        { prop: 'currentControlStatus_txt', label: '当前管控状态' },
        { prop: 'managerPhone', label: '联系电话' },
        { prop: 'networdInfoSituation', label: '涉网信息情况', span: 2 },
        { prop: 'applyControlReason', label: '申请异地管控原因', span: 2 },
        { prop: 'file', label: '证明材料', span: 2 },
      ],
      // 省外异地管控-外省转入
      fieldArr4: [
        { prop: 'approvalNumber', label: '编号' },
        { prop: 'createName', label: '申请人' },
        { prop: 'realName', label: '吸毒人员姓名' },
        { prop: 'nickName', label: '别名/绰号' },
        { prop: 'country', label: '籍贯' },
        { prop: 'nation_txt', label: '民族' },
        { prop: 'birthday', label: '出生日期' },
        { prop: 'sex_txt', label: '性别' },
        { prop: 'identityCard', label: '身份证号' },
        { prop: 'phone', label: '手机号码' },
        { prop: 'householdAddress', label: '户籍地详址' },
        { prop: 'householdPoliceStation', label: '户籍地派出所' },
        { prop: 'currentAddress', label: '居住地详址' },
        { prop: 'currentTown', label: '居住地执行社区' },
        { prop: 'currentPoliceStation', label: '居住地派出所' },
        { prop: 'currentControlStatus_txt', label: '当前管控状态' },
        { prop: 'riskCategory_txt', label: '风险类别' },
        { prop: 'applyControlDate_time', label: '申请异地管控时间' },
        { prop: 'belongManagerPhone', label: '户籍地专干姓名' },
        { prop: 'belongManagerPhone', label: '专干联系电话' },
        { prop: 'policeName', label: '户籍地民警姓名' },
        { prop: 'policePhone', label: '民警联系电话' },
        { prop: 'networkInfoSituation', label: '涉网信息情况', span: 2 },
        { prop: 'applyControlReason', label: '申请异地管控原因', span: 2 },
        { prop: 'file', label: '附件', span: 2 },
      ],
      // 省外异地管控-转出省外-异常上报
      fieldArr6: [
        { prop: 'approvalNumber', label: '编号' },
        { prop: 'createName', label: '申请人' },
        { prop: 'realName', label: '吸毒人员姓名' },
        { prop: 'sex_txt', label: '性别' },
        { prop: 'birthday', label: '出生日期' },
        { prop: 'identityCard', label: '身份证号' },
        { prop: 'phone', label: '手机号码' },
        { prop: 'riskCategory_txt', label: '风险类别' },
        { prop: 'currentAddress', label: '居住地详址' },
        { prop: 'currentTown', label: '居住地执行社区' },
        { prop: 'currentManagerName', label: '居住地专干姓名' },
        { prop: 'currentManagerPhone', label: '专干联系电话' },
        { prop: 'policeName', label: '居住地民警姓名' },
        { prop: 'policePhone', label: '民警联系电话' },
        { prop: 'householdAddress', label: '户籍地详址' },
        { prop: 'householdTown', label: '户籍地执行社区' },
        { prop: 'currentControlStatus_txt', label: '当前管控状态', span: 2 },
        { prop: 'reportDescribe', label: '异常上报描述', span: 2 },
        { prop: 'file', label: '证明材料', span: 2 },
      ],
      // 同城转介
      fieldArr7: [
        { prop: 'approvalNumber', label: '编号' },
        { prop: 'createName', label: '申请人' },
        { prop: 'handoverPersonName', label: '交接人' },
        { prop: 'name', label: '戒康人员姓名' },
        { prop: 'identityCard', label: '身份证' },
        { prop: 'phone', label: '联系方式' },
        { prop: 'originalExecutionArea', label: '执行地', span: 2 },
      ],
      // 撤销省内异地管控
      fieldArr8: [
        { prop: 'approvalNumber', label: '编号' },
        { prop: 'createName', label: '申请人' },
        { prop: 'realName', label: '吸毒人员姓名' },
        { prop: 'nickName', label: '别名/绰号' },
        { prop: 'country', label: '籍贯' },
        { prop: 'nation_txt', label: '民族' },
        { prop: 'birthday', label: '出生日期' },
        { prop: 'sex_txt', label: '性别' },
        { prop: 'identityCard', label: '身份证号' },
        { prop: 'phone', label: '手机号码' },
        { prop: 'householdAddress', label: '户籍地详址' },
        { prop: 'householdPoliceStation', label: '户籍地派出所' },
        { prop: 'currentAddress', label: '居住地详址' },
        { prop: 'currentTown', label: '居住地执行社区' },
        { prop: 'currentPoliceStation', label: '居住地派出所' },
        { prop: 'currentControlStatus_txt', label: '当前管控状态' },
        { prop: 'riskLevel_txt', label: '风险类别' },
        { prop: 'applyControlDate', label: '申请撤销异地管控时间' },
        { prop: 'managerName', label: '当前管控责任人' },
        { prop: 'applyControlReason', label: '联系电话' },
        { prop: 'applyControlReason', label: '涉网信息情况', span: 2 },
        { prop: 'applyControlReason', label: '申请撤销异地管控原因', span: 2 },
        { prop: 'file', label: '证明材料', span: 2 },
      ],
      // 撤销省外异地管控-外省转入
      fieldArr9: [
        { prop: 'approvalNumber', label: '编号' },
        { prop: 'createName', label: '申请人' },
        { prop: 'realName', label: '吸毒人员姓名' },
        { prop: 'nickName', label: '别名/绰号' },
        { prop: 'country', label: '籍贯' },
        { prop: 'nation_txt', label: '民族' },
        { prop: 'birthday', label: '出生日期' },
        { prop: 'sex_txt', label: '性别' },
        { prop: 'identityCard', label: '身份证号' },
        { prop: 'phone', label: '手机号码' },
        { prop: 'householdAddress', label: '户籍地详址' },
        { prop: 'householdPoliceStation', label: '户籍地派出所' },
        { prop: 'currentAddress', label: '居住地详址' },
        { prop: 'currentTown', label: '居住地执行社区' },
        { prop: 'currentPoliceStation', label: '居住地派出所' },
        { prop: 'currentControlStatus_txt', label: '当前管控状态' },
        { prop: 'riskLevel_txt', label: '风险类别' },
        { prop: 'applyControlDate', label: '申请撤销异地管控时间' },
        { prop: 'managerName', label: '当前管控责任人' },
        { prop: 'curt', label: '联系电话' },
        { prop: 'managerPhone', label: '户籍地专干姓名' },
        { prop: 'networdInfoSituation', label: '专干联系电话' },
        { prop: 'applyControlReason', label: '户籍地民警姓名' },
        { prop: 'applyControlReason', label: '民警联系电话' },
        { prop: 'applyControlReason', label: '涉网信息情况', span: 2 },
        { prop: 'applyControlReason', label: '申请撤销异地管控原因', span: 2 },
        { prop: 'file', label: '证明材料', span: 2 },
      ],
      // 撤销省外异地管控-转出省外
      fieldArr10: [
        { prop: 'approvalNumber', label: '编号' },
        { prop: 'createName', label: '申请人' },
        { prop: 'realName', label: '吸毒人员姓名' },
        { prop: 'nickName', label: '别名/绰号' },
        { prop: 'country', label: '籍贯' },
        { prop: 'nation_txt', label: '民族' },
        { prop: 'birthday', label: '出生日期' },
        { prop: 'sex_txt', label: '性别' },
        { prop: 'identityCard', label: '身份证号' },
        { prop: 'phone', label: '手机号码' },
        { prop: 'householdAddress', label: '户籍地详址' },
        { prop: 'householdPoliceStation', label: '户籍地派出所' },
        { prop: 'currentAddress', label: '居住地详址' },
        { prop: 'currentTown', label: '居住地执行社区' },
        { prop: 'currentPoliceStation', label: '居住地派出所' },
        { prop: 'managerName', label: '当前管控责任人' },
        { prop: 'riskLevel_txt', label: '风险类别' },
        { prop: 'applyControlDate', label: '申请撤销异地管控时间' },
        { prop: 'currentControlStatus_txt', label: '居住地专干姓名' },
        { prop: 'managerPhone', label: '专干联系电话' },
        { prop: 'networdInfoSituation', label: '居住地民警姓名' },
        { prop: 'applyControlReason', label: '民警联系电话' },
        { prop: 'applyControlReason', label: '涉网信息情况' },
        { prop: 'applyControlReason', label: '申请人联系电话' },
        { prop: 'applyControlReason', label: '申请撤销异地管控原因', span: 2 },
        { prop: 'file', label: '附件', span: 2 },
      ],
      // 社戒社康人员请假
      fieldArr13: [
        { prop: 'approvalNumber', label: '编号' },
        { prop: 'createName', label: '申请人' },
        { prop: 'name', label: '人员姓名' },
        { prop: 'sex_txt', label: '性别' },
        { prop: 'sjskType_txt', label: '类型' },
        { prop: 'executeTime', label: '执行时间' },
        { prop: 'identityCard', label: '身份证号' },
        { prop: 'phone', label: '联系电话' },
        { prop: 'householdAddress', label: '户籍地详址' },
        { prop: 'currentAddress', label: '居住地详址' },
        { prop: 'workUnit', label: '工作单位' },
        { prop: 'activityScope', label: '活动范围' },
        { prop: 'startDate_time', label: '请假开始时间' },
        { prop: 'endDate_time', label: '请假结束时间' },
        { prop: 'outDay', label: '请假时长（天）', span: 2 },
        { prop: 'outReason', label: '请假事由', span: 2 },
        { prop: 'file', label: '证明材料', span: 2 },
        { prop: 'template', label: '生成模板文件', span: 2 },
      ],
      // 社戒社康中止
      fieldArr14: [
        { prop: 'approvalNumber', label: '编号' },
        { prop: 'createName', label: '申请人' },
        { prop: 'phone', label: '手机号' },
        { prop: 'name', label: '社戒社康人员姓名' },
        { prop: 'identityCard', label: '身份证号' },
        { prop: 'abortStartDate', label: '中止开始时间' },
        // { prop: 'abortEndDate', label: '中止结束时间' },
        { prop: 'nowExecutionArea', label: '执行地' },
        { prop: 'abortDays', label: '预计中止天数' },
        { prop: 'abortOrgan', label: '中止机构' },
        { prop: 'abortReason', label: '中止原由' },
        { prop: 'soerciveMeasures', label: '采取措施' },
        // { prop: 'detoxificationCenter', label: '戒毒所' },
        { prop: 'remark', label: '备注' },
        { prop: 'file', label: '证明材料', span: 2 },
      ],
      // 结案评估审批
      fieldArr16: [
        { prop: 'realName', label: '人员姓名' },
        { prop: 'personType_txt', label: '人员类型' },
        { prop: 'identityCard', label: '身份证号' },
      ],
      // 18取消常规尿液检测审批、19取消突击尿液检测审批、20取消常规毛发检测审批、21取消突击毛发检测审批
      fieldArr18: [
        { prop: 'sjskType', label: '人员类型' },
        { prop: 'realName', label: '被检测人' },
        { prop: 'urineType', label: '检测类型' },
        { prop: 'detectNum', label: '检测次数' },
        { prop: 'time', label: '计划时间' },
        { prop: 'area', label: '检测地点' },
        { prop: 'dockingName', label: '对接人' },
        { prop: 'dockingPhone', label: '联系电话' },
        { prop: 'cancelReason', label: '取消原因' },
      ],
      // 访谈逾期补录审批
      fieldArr22: [
        { prop: 'realName', label: '被谈话人' },
        { prop: 'identityCard', label: '身份证号' },
        { prop: 'interviewNum', label: '被访谈次数' },
        { prop: 'type', label: '访谈分类' },
        { prop: 'interviewActualTime', label: '谈话时间' },
        { prop: 'interviewPlace', label: '谈话地点' },
        { prop: 'detailPlace', label: '详细地址', span: 2 },
        { prop: 'overdueReason', label: '逾期原因', span: 2 },
        { prop: 'overdueReasonExplain', label: '原因说明', span: 2 },
        { prop: 'file', label: '证明材料', span: 2 },
      ],
      // 尿检逾期补录审批
      fieldArr23: [
        { prop: 'realName', label: '被检测人' },
        { prop: 'identityCard', label: '身份证号' },
        { prop: 'urineTypeName', label: '检测类型' },
        { prop: 'detectNum', label: '检测次数' },
        { prop: 'time', label: '检测时间' },
        { prop: 'detectResultName', label: '检测结果', span: 2 },
        { prop: 'file', label: '检测报告', span: 2 },
        { prop: 'overdueReasonName', label: '逾期原因', span: 2 },
        { prop: 'overdueReasonExplain', label: '原因说明', span: 2 },
        { prop: 'file', label: '证明材料', span: 2 },
      ],
      // 取消定期访谈审批
      fieldArr24: [
        { prop: 'sjskType', label: '人员类型' },
        { prop: 'realName', label: '被谈话人' },
        { prop: 'type', label: '访谈类型' },
        { prop: 'interviewNum', label: '访谈次数' },
        { prop: 'interviewClassification', label: '访谈分类' },
        { prop: 'interviewTheme', label: '访谈主题', span: 2 },
        { prop: 'time', label: '计划时间', span: 2 },
        { prop: 'area', label: '谈话地点', span: 2 },
        { prop: 'cancelReasonExplain', label: '取消原因', span: 2 },
      ],
      // 特殊人群处置审批
      fieldArr25: [
        { prop: 'name', label: '人员姓名' },
        { prop: 'identification', label: '身份证号' },
        { prop: 'specialPersonType_txt', label: '特殊人员类型' },
        { prop: 'controlExemptionType_txt', label: '申请管控免除类型' },
        { prop: 'mdkTime', label: '免打卡签到时间' },
        { prop: 'mnjTime', label: '免定期尿液检测时间' },
        { prop: 'mljTime', label: '免突击尿液检测时间' },
        { prop: 'mdqftTime', label: '免定期访谈时间' },
        // { prop: 'mdqbgTime', label: '免定期报告时间' },
        { prop: 'controlType_txt', label: '申请管控类型' },
        { prop: 'hairInspect', label: '毛发检测时间' },
        { prop: 'file', label: '证明材料' }, //supportMaterials
      ],
      // 26季度评估审批、27年度评估审批
      fieldArr26: [
        { prop: 'name', label: '人员姓名' },
        { prop: 'type_txt', label: '人员类型' },
        { prop: 'identification', label: '身份证号' },
        { prop: 'sex_txt', label: '性别' },
        { prop: 'address', label: '家庭住址' },
        { prop: 'assessmentType', label: '评估类型' },
        { prop: 'assessmentTime', label: '评估时段' },
      ],
      // 28季度评估补录审批、29年度评估补录审批
      fieldArr28: [
        { prop: 'name', label: '人员姓名' },
        { prop: 'type_txt', label: '人员类型' },
        { prop: 'identification', label: '身份证号' },
        { prop: 'sex_txt', label: '性别' },
        { prop: 'address', label: '家庭住址' },
        { prop: 'assessmentType', label: '评估类型' },
        { prop: 'assessmentTime', label: '评估时段' },
        { prop: 'reasonOverdue', label: '逾期原因', span: 2 },
        { prop: 'reasonDescription', label: '原因说明', span: 2 },
        { prop: 'file', label: '证明材料', span: 2 },
      ],
      // 小组活动申请审批
      fieldArr32: [
        { prop: 'approvalNumber', label: '审批编号' },
        { prop: 'createBy', label: '申请人' },
        { prop: 'activityName', label: '小组名称' },
        { prop: 'activityProperty', label: '小组性质' },
        { prop: 'activityType', label: '小组类型' },
        { prop: 'createBy', label: '负责社工/专干' },
        { prop: 'serverPeople', label: '服务人数' },
        { prop: 'serverType', label: '服务对象' },
        { prop: 'createTime', label: '日期/时间' },
        { prop: 'activityAddress', label: '活动地点' },
        { prop: 'activityUnits', label: '单元（节）数' },
        // { prop: 'file', label: '生成模板文件' },
      ],
      // 社区活动申请审批
      fieldArr37: [
        { prop: 'approvalNumber', label: '审批编号' },
        { prop: 'createBy', label: '申请人' },
        { prop: 'activityName', label: '活动名称' },
        { prop: 'activityProperty', label: '活动性质' },
        { prop: 'activityType', label: '活动类型' },
        { prop: 'createBy', label: '负责社工/专干' },
        { prop: 'serverPeople', label: '服务人数' },
        { prop: 'serverType', label: '服务对象' },
        { prop: 'createTime', label: '日期/时间' },
        { prop: 'activityAddress', label: '活动地点' },
        { prop: 'activityUnits', label: '单元（节）数' },
        { prop: 'file', label: '生成模板文件' },
      ],
      // 所内介入申请审批
      fieldArr38: [
        { prop: 'approvalNumber', label: '审批编号' },
        { prop: 'personType_txt', label: '申请人' },
        { prop: 'identityCard', label: '社戒社康人员姓名' },
        { prop: 'sex_txt', label: '强戒所' },
        { prop: 'identityCard', label: '户籍地详址' },
        { prop: 'identityCard', label: '需介入部门' },
        { prop: 'identityCard', label: '申请介入部门' },
        { prop: 'identityCard', label: '介入专干/社工人员' },
        { prop: 'file', label: '说明' },
      ],
      // 转诊申请审批
      fieldArr39: [
        { prop: 'originRegionWords', label: '原治疗地区' },
        { prop: 'originClinic', label: '原治疗门诊' },
        { prop: 'targetRegionWords', label: '拟转诊至' },
        { prop: 'targetClinic', label: '治疗门诊' },
        { prop: 'patientId', label: '病人编号' },
        { prop: 'realName', label: '病人姓名' },
        { prop: 'referralLevel', label: '转诊级别' },
        { prop: 'referralCause', label: '转诊事由概要' },
        { prop: 'cure_proposal', label: '治疗建议' },
        { prop: 'curDose', label: '现维持剂量' },
        { prop: 'referralTime', label: '转诊时间' },
        { prop: 'isChange', label: '长期变更服药门诊' },
      ],
      // 风险等级评估
      fieldArr40: [
        { prop: 'approvalNumber', label: '编号' },
        { prop: 'createName', label: '申请人' },
        { prop: 'realName', label: '评估对象姓名' },
        { prop: 'sex_txt', label: '性别' },
        { prop: 'country_txt', label: '籍贯' },
        { prop: 'nation_txt', label: '民族' },
        { prop: 'birthday', label: '出生日期' },
        { prop: 'education_txt', label: '文化程度' },
        { prop: 'identityCard', label: '身份证号' },
        { prop: 'phone', label: '联系方式' },
        { prop: 'householdAddress', label: '户籍地详址' },
        { prop: 'currentAddress', label: '居住地详址' },
        { prop: 'currentTown', label: '管辖地区' },
        { prop: 'currentPoliceStation', label: '管辖派出所' },
        { prop: 'risk_level_personType_txt', label: '人员类型' },
        { prop: 'currentRiskLevel_txt', label: '当前风险等级' },
        { prop: 'currentControlStatus_txt', label: '当前管控现状' },
        { prop: 'currentControlTime', label: '当前管控现状时间' },
        { prop: 'applyLevel_txt', label: '申请评估等级' },
        { prop: 'interviewPerson', label: '走访人员' },
        { prop: 'evaluationBasis', label: '评估依据', span: 2 },
        { prop: 'file', label: '证明材料', span: 2 },
        { prop: 'drugSeizures', label: '查获吸毒记录', span: 2 },
        // { prop: 'taskUserLists', label: '其他违法犯罪记录',span: 2},
        { prop: 'taskUserLists', label: '生成模板文件', span: 2 },
      ],
      // 告警事件审批
      fieldArr41: [
        { prop: 'approvalNumber', label: '编号' },
        { prop: 'createBy', label: '申请人' },
        { prop: 'taskCode', label: '任务编号' },
        { prop: 'contactNumber', label: '联系电话' },
        { prop: 'taskName', label: '任务名称' },
        { prop: 'createTime', label: '创建时间' },
        { prop: 'riskLevel_txt', label: '风险级别' },
        { prop: 'affiliatedUnit', label: '所属单位' },
        { prop: 'remarks', label: '备注', span: 2 },
        { prop: 'taskModels', label: '任务模型', span: 2 },
        { prop: 'taskUserLists', label: '目标对象', span: 2 },
      ],
      // 法律援助申请审批
      fieldArr42: [
        // { prop: 'realName', label: '咨询人' },
        // { prop: 'identityCard', label: '身份证号' },
        // { prop: 'sjskType', label: '人员类型' },
        // { prop: 'phone', label: '联系电话' },
        // { prop: 'topical', label: '咨询主题' },
        // { prop: 'areaName', label: '区域' },
        // { prop: 'lawFirmName', label: '机构' },
        // { prop: 'organizationArea', label: '机构地址' },
        // { prop: 'lawyerName', label: '律师' },
        // { prop: 'lawyerPhone', label: '联系电话' },
        // { prop: 'businessArea', label: '擅长领域' },
        { prop: 'realName', label: '咨询人' },
        { prop: 'identityCard', label: '身份证号' },
        { prop: 'sex_txt', label: '性别' },
        { prop: 'birthday', label: '出生日期' },
        { prop: 'phone', label: '手机号码' },
        { prop: 'organizationName', label: '咨询机构' },
        { prop: 'lawyerName', label: '律师' },
        { prop: 'interviewWay', label: '谈话方式' },
        { prop: 'topical', label: '咨询主题' },
      ],
      // 逾期报到申请审批
      fieldArr43: [
        { prop: 'approvalNumber', label: '审批编号' },
        { prop: 'personType_txt', label: '申请人' },
        { prop: 'identityCard', label: '户籍地详址' },
        { prop: 'sex_txt', label: '原报到截止时间' },
        { prop: 'identityCard', label: '新报到截止时间' },
        { prop: 'file', label: '附件' },
        { prop: 'identityCard', label: '情况说明' },
      ],
      // 心理辅导申请审批
      fieldArr44: [
        // { prop: 'approvalNumber', label: '咨询人' },
        // { prop: 'createBy', label: '身份证号' },
        // { prop: 'taskCode', label: '人员类型' },
        // { prop: 'contactNumber', label: '联系电话' },
        // { prop: 'taskName', label: '咨询主题' },
        // { prop: 'createTime', label: '区域' },
        // { prop: 'riskLevel_txt', label: '机构' },
        // { prop: 'affiliatedUnit', label: '机构地址' },
        // { prop: 'remarks', label: '心理专家' },
        // { prop: 'taskModels', label: '联系电话' },
        // { prop: 'taskUserLists', label: '擅长领域' },
        // { prop: 'realName', label: '咨询人' },
        { prop: 'consultantName', label: '咨询人' },
        { prop: 'identification', label: '身份证号' },
        { prop: 'sex_txt', label: '性别' },
        { prop: 'birthday', label: '出生日期' },
        { prop: 'phone', label: '手机号码' },
        { prop: 'mechanismName', label: '咨询机构' },
        { prop: 'psyTeacherName', label: '心理专家' },
        { prop: 'consultType', label: '谈话方式' },
        { prop: 'consultTopic', label: '咨询主题' },
      ],
      // 美沙酮入组审批
      fieldArr45: [
        { prop: 'clinicRegion', label: '门诊所在地区' },
        { prop: 'clinicName', label: '门诊名称' },
        { prop: 'groupCount', label: '第几次入组' },
        { prop: 'identityCard', label: '身份证号码' },
        { prop: 'realName', label: 'currentAddress姓名' },
        { prop: 'sex_txt', label: '性别' },
        { prop: 'birthday_time', label: '出生日期' },
        { prop: 'nation_txt', label: '民族' },
        { prop: 'marriage_txt', label: '婚姻状况' },
        { prop: 'education_txt', label: '文化程度' },
        { prop: 'occupation_txt', label: '从业状况' },
        { prop: 'firstDrugTime_time', label: '初次吸毒时间' },
        { prop: 'drugAbuseMode', label: '滥用毒品方式', span: 2 },
        { prop: 'drugType_txt', label: '滥用毒品种类', span: 2 },
        { prop: 'currentTown', label: '现居住地', span: 2 },
        { prop: 'currentAddress', label: '现居住地详址', span: 2 },
        { prop: 'phone', label: '联系电话', span: 2 },
        { prop: 'file', label: '检测材料', span: 2 }, //testingMaterials
      ],
      // 专干人员请假审批
      fieldArr46: [
        { prop: 'approvalNumber', label: '编号' },
        { prop: 'name', label: '申请人' },
        { prop: 'b', label: '所在单位' },
        { prop: 'a', label: '所在部门' },
        { prop: 'leaveStartTime_time', label: '请假开始时间' },
        { prop: 'leaveStopTime_time', label: '请假结束时间' },
        { prop: 'leaveDay', label: '请假时长（天）' },
        { prop: 'leaveReason', label: '请假事由' },
        { prop: 'file', label: '证明材料' },
      ],
      // 专干人员离职审批
      fieldArr47: [
        { prop: 'approvalNumber', label: '编号' },
        { prop: 'approvalNumber', label: '申请人' },
        { prop: 'company', label: '所在单位' },
        { prop: 'department', label: '所在部门' },
        { prop: 'quitTime', label: '离职日期' },
        { prop: 'quitReason', label: '离职原因' },
        { prop: 'person_jj', label: '人员交接' },
      ],
      // 中止-继续执行
      fieldArr48: [
        { prop: 'approvalNumber', label: '编号' },
        { prop: 'createName', label: '申请人' },
        { prop: 'name', label: '社戒社康人员姓名' },
        { prop: 'sjskType_txt', label: '类别' },
        { prop: 'identityCard', label: '身份证号' },
        { prop: 'sex_txt', label: '性别' },
        { prop: 'abortStartDate', label: '中止开始时间' },
        { prop: 'abortReason', label: '中止原由' },
        { prop: 'continueTime', label: '继续执行时间' },
        { prop: 'legalReason', label: '法定原因' },
        { prop: 'punishment', label: '法院判处刑罚', span: 2 },
        { prop: 'file', label: '证明材料', span: 2 },
      ],
    }
  },
  methods: {
    // 基本信息-对应的值
    getInfodictByValue() {
      //取字典值【需要字典的字段，尽量区分原字段，在字段后加_txt（如：sex_txt）】
      // 性别
      this.$set(this.datas, 'sex_txt', this.getNewByValue(this.datas, 'sex', 'sex'))
      //国籍
      this.$set(this.datas, 'country_txt', this.getNewByValue(this.datas, 'country', 'country'))
      //民族
      this.$set(this.datas, 'nation_txt', this.getNewByValue(this.datas, 'nation', 'nation'))
      //文化程度
      this.$set(this.datas, 'education_txt', this.getNewByValue(this.datas, 'education', 'degreeEducation'))
      //从业状况
      this.$set(this.datas, 'occupation_txt', this.getNewByValue(this.datas, 'occupation', 'work_situation'))
      //婚姻状况
      this.$set(this.datas, 'marriage_txt', this.getNewByValue(this.datas, 'marriage', 'marriage'))
      //风险级别
      this.$set(this.datas, 'riskLevel_txt', this.getNewByValue(this.datas, 'riskLevel', 'risk_level'))
      //风险类别
      this.$set(this.datas, 'riskCategory_txt', this.getNewByValue(this.datas, 'riskCategory', 'risk_category'))
      // 当前管控状态
      this.$set(
        this.datas,
        'currentControlStatus_txt',
        this.getNewByValue(this.datas, 'currentControlStatus', 'current_control_status')
      )
      // 社戒社康类型
      this.$set(this.datas, 'sjskType_txt', this.getNewByValue(this.datas, 'sjskType', 'sjsk_type'))
      // 人员类型
      this.$set(this.datas, 'personType_txt', this.getNewByValue(this.datas, 'personType', 'personType'))
      // 申请评估等级
      this.$set(this.datas, 'applyLevel_txt', this.getNewByValue(this.datas, 'applyLevel', 'risk_category'))
      // 当前风险等级
      this.$set(this.datas, 'currentRiskLevel_txt', this.getNewByValue(this.datas, 'currentRiskLevel', 'risk_category'))
      // 滥用毒品种类
      this.$set(this.datas, 'drugType_txt', this.getNewByValue(this.datas, 'drugType', 'drug_type'))
      //风险等级评估模块
      if (this.businessType == 1) {
        this.$set(
          this.datas,
          'screenshotTime',
          '《变更社区戒毒社区康复执行地审批表》，《变更社区戒毒社区康复执行地通知书》，《关于变更社区戒毒社区康复执行地的函》'
        )
      }
      if (this.businessType == 32) {
        this.$set(this.datas, 'createTime', this.timestampToTime(this.datas.createTime))
      }
      if (this.businessType == 40) {
        // 人员类型
        this.$set(
          this.datas,
          'risk_level_personType_txt',
          this.getNewByValue(this.datas, 'personType', 'risk_level_person_type')
        )
        this.getDrugSeizureDetails(this.datas.personId, this.datas.sources)
      }
      //中止 和 继续执行
      if (this.businessType == 14 || this.businessType == 48) {
        let soerciveMeasures = this.datas.soerciveMeasures == 1 ? '刑拘' : '逮捕'
        this.$set(this.datas, 'soerciveMeasures', soerciveMeasures)
        let abortReason = this.datas.abortReason == 1 ? '申请自愿强制隔离戒毒' : '其他'
        this.$set(this.datas, 'abortReason', abortReason)
        let abortStartDate = this.timestampToTime(this.datas.abortStartDate)
        this.$set(this.datas, 'abortStartDate', abortStartDate)
        let continueTime = this.timestampToTime(this.datas.continueTime)
        this.$set(this.datas, 'continueTime', continueTime)
        this.$set(this.datas, 'legalReason', this.getNewByValue(this.datas, 'legalReason', 'legal_Reason'))
      }
      // 26季度评估审批、27年度评估审批、28季度评估补录审批、29年度评估补录审批
      if (this.businessType == 26 || this.businessType == 27 || this.businessType == 28 || this.businessType == 29) {
        // 评估时段
        let assessmentTime =
          this.datas.assessmentStartTime && this.datas.assessmentEndTime
            ? this.datas.assessmentStartTime + '~' + this.datas.assessmentEndTime
            : '--'
        this.$set(this.datas, 'assessmentTime', assessmentTime)

        let assessmentType = this.datas.assessmentType == 1 ? '季度评估' : '年度评估'
        this.$set(this.datas, 'assessmentType', assessmentType)
        // 逾期原因
        const reasonOverdueTypes = [
          { value: '0', text: '个人原因' },
          { value: '1', text: '其他' },
        ]
        this.$set(this.datas, 'reasonOverdue', this.getNewByValue(this.datas, 'reasonOverdue', reasonOverdueTypes))
        // 人员类型
        // this.$set(this.datas, 'type_txt', this.getNewByValue(this.datas, 'type', 'person_type'))
        this.$set(this.datas, 'type_txt', this.datas.type == 1 ? '社区戒毒' : '社区康复')
      }
      if (this.businessType == 25) {
        // 特殊人员类型
        const specialPersonTypes = [
          { value: '1', text: '病重' },
          { value: '2', text: '精神疾病' },
        ]
        this.$set(
          this.datas,
          'specialPersonType_txt',
          this.getNewByValue(this.datas, 'specialPersonType', specialPersonTypes)
        )
        // 申请管控免除类型
        const controlExemptionTypes = [
          { value: '1', text: '打卡免签' },
          { value: '2', text: '免尿液检测' },
          { value: '3', text: '定期访谈' },
          { value: '4', text: '定期报告' },
        ]
        this.$set(
          this.datas,
          'controlExemptionType_txt',
          this.getNewByValue(this.datas, 'controlExemptionType', controlExemptionTypes)
        )
        // 申请管控类型
        const controlTypes = [{ value: '1', text: '毛发检测' }]
        this.$set(this.datas, 'controlType_txt', this.getNewByValue(this.datas, 'controlType', controlTypes))
        // 免打卡签到时间
        let mdkTime =
          this.datas.mdkStartTime && this.datas.mdkEndTime
            ? this.datas.mdkStartTime + '~' + this.datas.mdkEndTime
            : '--'
        this.$set(this.datas, 'mdkTime', mdkTime)
        // 免尿液检测时间
        let mljTime =
          this.datas.mljStartTime && this.datas.mljEndTime
            ? this.datas.mljStartTime + '~' + this.datas.mljEndTime
            : '--'
        this.$set(this.datas, 'mljTime', mljTime)
      }
      // 转诊申请审批
      if (this.businessType == 39) {
        // 特殊人员类型
        const types = [
          { value: '0', text: '否' },
          { value: '1', text: '是' },
        ]
        this.$set(this.datas, 'isChange', this.getNewByValue(this.datas, 'isChange', types))
      }

      // 附件统一赋值到file，后端输出字段不是file的，要转换一下字段
      if (this.businessType == 45) {
        this.$set(this.datas, 'file', this.getNewByValue(this.datas, 'testingMaterials')) //美沙酮入组审批-检测材料
      }
      if (this.businessType == 25) {
        this.$set(this.datas, 'file', this.getNewByValue(this.datas, 'supportMaterials')) //特殊人群处置审批-证明材料
      }
      if (this.businessType == 28 || this.businessType == 29) {
        this.$set(this.datas, 'file', this.getNewByValue(this.datas, 'overdueFileId')) //季度，年度评估逾期补录-证明材料
      }

      // 需要时间转换的字段
      this.$set(this.datas, 'birthday_time', this.getNewByValue(this.datas, 'birthday', 'YYYY-MM-DD')) //美沙酮入组-出生日期
      this.$set(this.datas, 'birthday', this.getNewByValue(this.datas, 'birthday', 'YYYY-MM-DD')) //美沙酮入组-出生日期

      this.$set(this.datas, 'applyControlDate_time', this.getNewByValue(this.datas, 'applyControlDate', 'YYYY-MM-DD')) //省内异地管控/省外异地管控-外省转入/省外异地管控-转出省外-申请异地管控时间
      this.$set(this.datas, 'startDate_time', this.getNewByValue(this.datas, 'startDate', 'YYYY-MM-DD')) //社戒社康人员请假-请假开始时间
      this.$set(this.datas, 'endDate_time', this.getNewByValue(this.datas, 'endDate', 'YYYY-MM-DD')) //社戒社康人员请假-请假结束时间
      this.$set(this.datas, 'firstDrugTime_time', this.getNewByValue(this.datas, 'firstDrugTime', 'YYYY-MM-DD')) //美沙酮入组-初次吸毒时间
      this.$set(
        this.datas,
        'leaveStartTime_time',
        this.getNewByValue(this.datas, 'leaveStartTime', 'YYYY-MM-DD HH:mm:ss')
      ) //专干人员请假/专干人员离职-请假开始时间
      this.$set(
        this.datas,
        'leaveStopTime_time',
        this.getNewByValue(this.datas, 'leaveStopTime', 'YYYY-MM-DD HH:mm:ss')
      ) //专干人员请假/专干人员离职-请假结束时间
    },
    // 获取字典值/数组值/某值赋到新值/时间格式转换
    getNewByValue(datas, field, codes) {
      let value = undefined
      if (Object.keys(datas).length > 0 && datas[field] && codes && !Array.isArray(codes)) {
        if (codes === 'YYYY-MM-DD HH:mm:ss') value = this.$options.filters.moment(datas[field])
        else if (codes === 'YYYY-MM-DD') value = this.$options.filters.moment(datas[field], codes)
        else value = this.$filterMultiDictTextByCache(codes, datas[field])
        //else value = this.$filterDictTextByCache(codes, datas[field])
      }
      if (Object.keys(datas).length > 0 && datas[field] && codes && Array.isArray(codes)) {
        value = this.$options.filters.filterArray(datas[field], codes, 'value', 'text')
      }
      if (Object.keys(datas).length > 0 && datas[field] && !codes) {
        value = datas[field]
      }
      return value
    },
    formatDateTime(date) {
      var y = date.getFullYear()
      var m = date.getMonth() + 1
      m = m < 10 ? '0' + m : m
      var d = date.getDate()
      d = d < 10 ? '0' + d : d
      var h = date.getHours()
      var minute = date.getMinutes()
      minute = minute < 10 ? '0' + minute : minute
      // return y + '-' + m + '-' + d+' '+h+':'+minute;
      return y + '-' + m + '-' + d
    },
    timestampToTime(timestamp) {
      if (timestamp === 0 || timestamp == null) {
        return ''
      } else {
        var date = new Date(timestamp)
        var Y = date.getFullYear() + '-'
        var M = (date.getMonth() + 1 < 10 ? '0' + (date.getMonth() + 1) : date.getMonth() + 1) + '-'
        var D = date.getDate() < 10 ? '0' + date.getDate() : date.getDate()
        return Y + M + D
      }
    },
  },
}
